﻿using System.Configuration;
using System.Xml.Serialization;
using System.IO;
using System.Web;
using Sissonix.ExtRest.WADL;
using Sissonix.ExtRest;

namespace Sissonix.ExtRest.Configuration
{
    public class ExtRestConfig : ConfigurationSection
    {
        public static ExtRestConfig Singleton { get; set; }

        static ExtRestConfig()
        {
            Singleton = (ExtRestConfig)(ConfigurationManager.GetSection("ExtRest"));
        }
       
        private ExtRestConfig() : base() {
        }

        [ConfigurationProperty("WADLRelativePath")]
        public string WADLRelativePath
        {
            get { return (string)this["WADLRelativePath"]; }
        }
     }
}